package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/22  13:30
 * <p/>
 * 说明：更新头像 请求
 */
public class UpdateHeadReq extends BaseRequest {

    /**
     * @param userId  用户Id
     * @param headImg 头像
     * @return
     * @Description
     * @author yaohuix
     * @date 2016/2/22 13:33
     */
    public UpdateHeadReq(String userId, String headImg) {
        setUserId(userId);
        setHeadImg(headImg);
    }

    public void setUserId(String userId) {
        add("userId", userId);
    }

    public void setHeadImg(String headImg) {
        add("headImg", headImg);
    }

    @Override
    public String getUrl() {
        return API.UPDATE_HEAD;
    }
}
